package com.quarters.controller.wx;


import com.quarters.bean.Article;
import com.quarters.bean.layuiBean.ResultPage;
import com.quarters.bean.layuiBean.VoPage;
import com.quarters.commen.BaseController;
import com.quarters.util.Respons.ResponseUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 文章表 前端控制器
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-03
 */
@Controller
@RequestMapping("wx/article")
public class WXArticleController extends BaseController {


    @RequestMapping(value = "details.html")
    public String article_add(Model model,Long id){
        model.addAttribute("articleById",articleService.getById(id));
        return "wx/details";
    }





}
